package com.party.business.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.party.common.annotation.Excel;
import com.party.common.core.domain.BaseEntity;
import com.party.course.domain.PlanClass;
import com.party.course.domain.StudentInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 订单对象 t_order
 *
 * @author ruoyi
 * @date 2025-01-04
 */
@Data
@TableName(value = "t_order")
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class TOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * "订单编号"
     */
    @Excel(name = "订单编号")
    private String orderNo;

    /**
     * "订单时间"
     */
    @Excel(name = "订单时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")  // 格式化日期
    private Date createTime;
    /**
     * "用户Id"
     */
    @Excel(name = "用户Id")
    private String userId;

    /**
     * "课程Id"
     */
//    @Excel(name = "课程Id")
    private String productId;

    /**
     * "实付金额"
     */
    @Excel(name = "实付金额")
    private Double totalFee;

    /**
     * "优惠金额"
     */
//    @Excel(name = "优惠金额")
    private Double yhJe;

    /**
     * "原来金额"
     */
//    @Excel(name = "原来金额")
    private BigDecimal ylJe;


    /**
     * "课程状态  1 未排课  2 已排课 3 已上课"
     */
//    @Excel(name = "课程状态")
    private String kcStatus;
    /**
     * "订单状态"
     */
    @Excel(name = "订单状态")
    private String orderStatus;


    /**
     * "学员姓名"
     */
    @Excel(name = "学员姓名")
    private String name;
    /**
     * "家长联系方式"
     */
    @Excel(name = "家长联系方式")
    private String linkPhone;

    /**
     * "推荐人"
     */
    @Excel(name = "推荐人")
    private String tjPerson;

    /**
     * "推荐人联系方式"
     */
    @Excel(name = "推荐人联系方式")
    private String tjPersonPhone;

    /**
     * "期望上课时间"
     */
    @Excel(name = "期望上课时间")
    private String qwskDate;

    /**
     * "订单标题"
     */
    @Excel(name = "订单标题")

    private String title;

    /**
     * "年级"
     */
//    @Excel(name = "年级")
    private String grade;

    /**
     * "最近考试分数"
     */
//    @Excel(name = "最近考试分数")
    private BigDecimal ksScore;


    /**
     * "教材版本"
     */
//    @Excel(name = "教材版本")
    private String jcVersion;


    @Excel(name = "下单备注")
    private String remark;


    private String createBy;
    private String delFlag;



    /**
     * 所属学段：0小学，1初中，2高中
     */
    @TableField(exist = false)
    private String teachSection;

    /**
     * "姓名"
     */
    @TableField(exist = false)
    private String nickName;


    /**
     * "用户头像"
     */
    @TableField(exist = false)
    private String avatar;

    /**
     * "课程名称"
     */
    @TableField(exist = false)
    @Excel(name = "课程名称")
    private String kcName;

    /**
     * "课程封面"
     */
    @TableField(exist = false)
    private String kcImage;

    /**
     * "是否评价"
     */
    @TableField(exist = false)
    private int isFj;

    @TableField
    private StudentInfo studentInfo;



    /**
     * "上课状态 0:已上课  1：未上课"
     */
    @Excel(name = "上课状态")
    @TableField(exist = false)
    private String classStatus;
    // 反馈信息
    @TableField(exist = false)
    private String learnRemark;


    @TableField(exist = false)
    private String planId;

    @TableField(exist = false)
    private PlanClass planClass;

    /**
     * 支付中心名称
     */
    @TableField(exist = false)
    private String paCenterName;

    /**
     * 教练名称
     */
    @TableField(exist = false)
    private String coachInfoName;











}
